/**
 * CC_Model_NextLackingPart.java
 */
package commands.controller;
import dataTypes.*;

/**
 * A command returning a number of next lacking part of the download file.
 * @author Michal Kolodziejski
 */
public class CC_Model_NextLackingPart extends ControllerCommand{
	/** A download file of which a number of next lacking part was requested. */
	private DownloadFile downloadFile;
	/** A number of next lacking part of the file. */
	private int nextLackingPart;
	
	
	/**
	 * Constructor
	 * @param downloadFile a download file of which a number of next lacking part was requested
	 * @param nextLackingPart a number of next lacking part of the file
	 */
	public CC_Model_NextLackingPart(DownloadFile downloadFile, int nextLackingPart){
		super(ControllerCommandType.MODEL_NEXT_LACKING_PART);
		this.downloadFile = downloadFile;
		this.nextLackingPart = nextLackingPart;
	}

	/**
	 * @return the download file of which a number of next lacking part was requested
	 */
	public DownloadFile getDownloadFile() {
		return downloadFile;
	}

	/**
	 * @return the number of next lacking part of the file
	 */
	public int getNextLackingPart() {
		return nextLackingPart;
	}

}
